﻿@using e_TicaretSistemi.Models
@{
    var loginCustomer = Session["LoginKey"] as Customer;
}

<div class="options">
    <div class="search">
        <form action="@Url.Action("Index","Product")" method="GET">
            <span class="field"><input type="text" name="SearchString" id="SearchString" title="Arama" value="@Request.Params["SearchString"]"/></span>
            <input type="submit" class="search-submit" value="Ara" />
        </form>
    </div>

    <div class="right">
        @if (loginCustomer == null)
        {
            <span class="cart">
                <a href="@Url.Action("Login", "Customers")" class="cart-ico">&nbsp;</a>
                <strong>0.00 TL</strong>
            </span>
            <span class="left more-links">
                <a href="@Url.Action("Login", "Customers")">Giriş Yap</a>
            </span>
        }
        else
        {
            <span class="cart">
                <a href="#" class="cart-ico">&nbsp;</a>
                <strong>@loginCustomer.GetTotalBasketValue() TL</strong>
            </span>
            <span class="left more-links">
                <a href="@Url.Action("index", "Customers")">@loginCustomer.FullName</a>
            </span>
        }
    </div>
</div>